<?php
/**
 * Created by Bruce.
 * IDE: PhpStorm
 * Date: 2018/8/7
 * Time: 16:53
 */

namespace app\park\controller;


use app\park\model\QueryIsAdminModel;
use think\Request;

class QueryIsAdmin
{
    private $openId;

    public function index(Request $request)
    {
        $this->openId = $request->post('openId');
        if (!empty($this->openId)) {
            $mode = new QueryIsAdminModel();
            $res = $mode->query($this->openId);
            return $res;
        } else {
            return ['code' => '200', 'result' => 'openId is null'];
        }
    }
}